Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build testpackage definition automatically from directories. #782

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

ursg
Copy link
Contributor

@ursg ursg commented Jun 8, 2023

Every test should now have a test_spec.sh shell fragment that adds to the corresponding shell arrays (the preexisting ones have been added appropriately).

Small_test_definitions.sh then, instead of having the hardcoded list of tests, iterates through all tests/ directories and builds the array from those.

Alternatively, the user can still supply a list of test names to run in the small_test_definitinos.sh tests array.

ursg added 2 commits June 8, 2023 13:07
Every test should now have a test_spec.sh shell fragment that adds to
the corresponding shell arrays (the preexisting ones have been added
appropriately)
Copy link
Contributor

@ykempf ykempf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems you fixed this already anyway...

single_cell[1]=1
# If no tests are specified, run all tests/ subdirectories.
if [ "${#tests[@]}" -eq "0" ]; then
tests=($(ls -d tests/*))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use /usr/bin/ls to avoid messups with default --color.

@ykempf
Copy link
Contributor

ykempf commented Jun 8, 2023

Right so restart write should come before read unlike the alphabet, so these will need to either be redesigned to be one test in one go, or sequential.

@markusbattarbee
Copy link
Contributor

Hmm. It would perhaps make sense to place the actual launch commands for each test in a file inside that directory.

Then each launch file could include several launch commands, and eg. the read-write-test could be a single one.

If we want to compare different rank/thread combos, then we could also trigger those from those files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants